#pragma once
#include "ZuiLib.h"
#include "LRefObject.h"

namespace ZuiLib {

class LQrControl :public LRefObject<ZQrControl>
{
public:

	int getName(LuaFuncState& L)
	{
		return L.lreturn(pThis->GetName().GetString());
	}

	int setName(LuaFuncState& L)
	{
		pThis->SetName(L.arg(0).toString());
		return 0;
	}

	BEGIN_MAP_FUNC(LQrControl)
		DECLARE_FUNC(getName),
		DECLARE_FUNC(setName),
	END_MAP_FUNC
};


}//namespace
